<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!doctype html>
<html>
<head>
<base href="<%=basePath%>">

<title>任务计划安排</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
<script type="text/javascript"
	src="<%=path%>/resources/script/proms/taskPlan/taskPlan_mgr_list.js"></script>

</head>

<body class="easyui-layout">
	<input id="userId" name="userId" value="${userId }" type="hidden" />
	<input id="taskActorIds" name="taskActorIds" value="" type="hidden" />
	<input id="taskActorNames" name="taskActorNames" value="" type="hidden" />
	<input id="name" name="name" value="" type="hidden" />
	<div data-options="region:'west',split:true" title="项目指标"
		style="width: 225px;">
		<ul id="pi_tree" class="easyui-tree"></ul>
	</div>
	<div data-options="region:'center'" class="easyui-layout">
		<div data-options="region:'north'" title="任务列表" style="height: 50%;">
			<table id="task_dg">
			</table>
		</div>
		<div data-options="region:'center'" title="任务下的计划安排">
			<table id="taskPlan_dg"></table>
			<div id="tb" style="height: auto; display: none;">
				<div style="margin-bottom: 3px; text-align: right;">
					<%@include file="/WEB-INF/views/common/operate.jsp" %>
					<!-- <a href="javascript:void(0);" id="detailPlan" class="easyui-linkbutton"
				title="查看" iconCls="icon-detail" plain="true">查看</a>  -->
					<!-- <a href="javascript:void(0);" id="addPlan"
						class="easyui-linkbutton" title="添加" iconCls="icon-add"
						plain="true">新增</a> <a href="javascript:void(0);" id="editPlan"
						class="easyui-linkbutton" title="修改" iconCls="icon-edit"
						plain="true">修改</a> <a href="javascript:void(0);" id="removePlan"
						class="easyui-linkbutton" title="删除" iconCls="icon-remove"
						plain="true">删除</a> -->
				</div>
			</div>
		</div>
	</div>
	<div id="win" class="easyui-window"
	    	 data-options="modal:true,
	    	 				closed:true,
	    	 				maximizable:true,
	    	 				minimizable:false,
	    	 				collapsible:false,
	    	 				iconCls:'icon-save',
	    	 				draggable:true">
	    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
	    </div>
	    <%@include file="/WEB-INF/views/common/select_user.jsp"%>
</body>
<script type="text/javascript">
function reLoadPlans(){
	var rowData = $('#task_dg').datagrid('getSelected');
	if(rowData)
	$('#taskPlan_dg').datagrid('reload', {
		taskId : rowData.id
	});
	
	if(select_node == null){
		$('#task_dg').datagrid('reload', {
			actorId : $('#userId').val()
		});
	}else{
		$('#task_dg').datagrid('reload', {
			projectIndexId : select_node.id,
			actorId : $('#userId').val()
		});
	}
	
}
</script>
</html>
